//
//  Common.swift
//  WB123
//
//  Created by xuyunde mac pro on 2017/6/29.
//  Copyright © 2017年 NSObjiect. All rights reserved.
//App Key：945550507
//App Secret：66bec8979ac615b832f255251429ec20

import UIKit

// 屏幕的宽度和高度
let SCREENH = UIScreen.main.bounds.height
let SCREENW = UIScreen.main.bounds.width
// 切换根控制器通知名
let HMSWITCHROOTVIEWCONTROLLERNOTI = NSNotification.Name(rawValue: "HMSWITCHROOTVIEWCONTROLLERNOTI")
//// 微博相关的信息+//// 微博账号及密码
//let HMAPPKEY = "945550507"
//let HMAPPSECRET = "66bec8979ac615b832f255251429ec20"
//let HMREDIRECT_URI = "http://www.baidu.com"
//let HMWBNAME = "18236151768"
//let HMWBPASSWD = "a297234406"

// 微博相关的信息
let HMAPPKEY = "1745410014"
let HMAPPSECRET = "668371adb24bde6f363735183934881f"
let HMREDIRECT_URI = "http://www.baidu.com"
let HMWBNAME = "rangyuan05788697@163.com"
let HMWBPASSWD = "bbb333"



// RGB颜色
func RGB(r:CGFloat, g: CGFloat, b: CGFloat, alpha: CGFloat = 1) -> UIColor{
    return UIColor(red: r/255, green: g/255, blue: b/255, alpha: alpha)
}

// 随机颜色
func randomColor() -> UIColor{
    //随机数
    let r = CGFloat(arc4random()%256)
    let g = CGFloat(arc4random()%256)
    let b = CGFloat(arc4random()%256)
    return RGB(r: r, g: g, b: b)
}

// app中使用字体的大小

// 小号字体
let SmallFontSize: CGFloat = 10
// 普通字体
let NormalFontSize: CGFloat = 14
// 大号字体
let BigFontSize: CGFloat = 18

// 主题颜色
let ThemeColor = UIColor.orange
